import requests

login_url = "https://www-api2.gpmine.com/v2/user/auth/login"
login_data = {"name":"15986673013","password":"111111"}
login_response = requests.post(url=login_url, data=login_data)

token = login_response.json().get('data').get('auth').get('token')
# print(token)
rooms_url = 'https://live-zull-aiccp.xiyizb.com/player/1.0/getAnchorRooms'
rooms_headers = {'token': token}
for i in range(1000):
    rooms_response = requests.get(url=rooms_url, headers=rooms_headers)
    print(rooms_response.status_code)
    print(rooms_response.text)

# Authorization = login_response.json().get('obj').get('token')
# companyId = login_response.json().get('obj').get('companyId')
# usgId = login_response.json().get('obj').get('id')
2015418